from django.urls import path

from . import views

urlpatterns = [

    path('api/v1.0/user/register/', views.Register.as_view()),
    #判断用户状态
    path('api/v1.0/session/', views.SessionView.as_view()),
    #用户登录子路由
    path('api/v1.0/login/', views.LoginView.as_view()),
    #用户退出api
    path('api/v1.0/logout/', views.LogoutView.as_view()),

    path('api/v1.0/user/profile/',views.UserProfile.as_view()),
    path('api/v1.0/user/avatar/',views.UserAvatar.as_view()),
    path('api/v1.0/user/auth/',views.AuthProfile.as_view()),

]
